﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DALBase;
using MobileAPI.Entity.Model;
using System.Collections;

namespace MobileAPI.DAL
{
    public class DALRepairsState:BaseDAL
    {
        public DBAccess db = DBConnection.CreateDB();

        public bool InsertRepairsState(ERepairsState state,string UserName)
        {
            try
            {
                Hashtable hs = new Hashtable();
                hs.Add("用户名称", UserName);
                hs.Add("派工单号", state.WorkOrderId);
                hs.Add("操作类别", state.OperatingType);
                hs.Add("处理情况", state.DisposeCondition);
                bool IsSuccess = db.ExecuteStoredProcedure("SP_AM_报修状态", hs);
                return IsSuccess;
            }
            catch (Exception e)
            {
                base.WriteLog(e.Message);
                throw e;
            }
        }


    }
}
